package com.zhenmyan.secdeal.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zhenmyan.secdeal.pojo.User;
import com.zhenmyan.secdeal.vo.LoginRequest;
import com.zhenmyan.secdeal.vo.Response;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * description:
 *
 * @author 颜真明
 * @date 2023/5/5  14:37
 */
public interface UserService extends IService<User> {

    /**
     * 登录功能
     *
     * @param request
     * @return
     */
    Response doLogin(LoginRequest loginRequest, HttpServletRequest request, HttpServletResponse response);

    /**
     * 获取user信息
     *
     * @param userTicket
     * @param request
     * @param response
     * @return
     */
    User getUserByCookie(String userTicket, HttpServletRequest request, HttpServletResponse response);

}
